<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'addUser.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<style type="text/css">
span {
	color: red;
}


body {
	margin: 0;
	padding: 0;
	background-color: #f5f5f5;
}

.form-signin {
	max-width: 1200px;
	padding: 10px 10px 10px 450px;
	margin: 0px auto;
	background-color: #fff;
	border: 1px solid #e5e5e5;
}

.table1{
	text-align:center; 
	width: 1200px;
	background-color: #fff;
	margin:auto";

}
.table {
	margin-bottom: 20px;
}

.form-signin input[type="text"],.form-signin input[type="password"] {
	font-size: 16px;
	height: auto;
	margin-bottom: 15px;
	padding: 7px 9px;
	
}

.labelError {
	line-height: 9px;
	font-size: 10pt;
	color: #f40000;
	border: 1px #ffb8b8 solid;
	padding: 8px 8px 8px 35px;
	background: url(/Shopping/image/error.png) no-repeat;
	background-color: #fef2f2;
}
</style>
	</head>
	<body>
	<table class=table1  >
	<tr>
		<td >
			<h2>添加学生信息</h2>
		</td>		
	</tr>
	<tr id=tr1>
	<td id=td1 >
		<form class="form-signin" action="stadd" method="post"
			onSubmit="return checkstName() && 
   checkstAge() && checkstSex() && checkstTel() && checkstDept() && checkstAddress()">
			<table >
				<tr>
					<td >
						姓名：
					</td>
					<td align="center">
						<input class="input" type="text" name="stName" onblur="checkstName()"
							onFocus="clearstName()">
						<span id="stName1"></span>
					</td>
				</tr>
				<tr>
					<td >
						性别：
					</td>
					<td>
						<input type="radio" name="stSex" value="男" onblur="checkstSex()">
						男
						<input type="radio" name="stSex" value="女" onblur="checkstSex()">
						女
						<span id="stSex1"></span>
					</td>
				</tr>
				<tr>
					<td>
						年龄：
					</td>
					<td>
						<input class="input" type="text" name="stAge" onblur="checkstAge()"
							onFocus="clearstAge()">
						<span id="stAge1"></span>
					</td>
				</tr>
				<tr>
					<td>
						电话：
					</td>
					<td>
						<input class="input" type="text" name="stTel" onblur="checkstTel()"
							onFocus="clearstTel()">
						<span id="stTel1"></span>
					</td>
				</tr>
				<tr>
					<td>
						系别：
					</td>
					<td>
						<input class="input" type="text" name="stDept" onblur="checkstDept()"
							onFocus="clearstDept()">
						<span id="stDept1"></span>
					</td>
				</tr>
				<tr>
					<td>
						地址：
					</td>
					<td>
						<input class="input" type="text" name="stAddress" onblur="checkstAddress()"
							onFocus="clearstAddress()">
						<span id="stAddress1"></span>
					</td>
				</tr>
				<tr>
				<td>
			&nbsp;&nbsp;
			<input type="submit" value="提交" class="btn btn-primary">
			</td>
			<td>
			&nbsp;&nbsp;&nbsp;
			<input type="button" onclick="window.location.href='main.jsp'"
				value="返回" class="btn btn-success">
				</td>
				</tr>
			</table>
		</form>
		
		</td>
		</tr>
	</table>
	</body>
</html>
